public class fog extends Animals implements Eat,Swim{
    public fog() {
        super("青蛙", 3);
    }
    void eat(){
        System.out.println("吃虫子");
    }
    public void swim(){
        System.out.println(getName()+"蛙泳");
    }
}
